package com.example.demo.service;

import com.example.demo.entity.vo.CommentVO;
import com.example.demo.mapper.CommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-16
 * Time: 22:47
 */
@Service
public class CommentService {
    @Autowired
    private CommentMapper commentMapper;

    public Integer AddComment(CommentVO commentVO) {
        return commentMapper.AddComment(commentVO);
    }
    public List<CommentVO> getAllComment(Integer aid){
        return commentMapper.getAllComment(aid);
    }
}
